/*
 *  $Id: ScorchingWings.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Fire.Spells {
    public class ScorchingWings: TargetEnchantmentCard<Creature> {
        public ScorchingWings(): base("001_f_s_scorching_wings") {
            Level = CompleteLevel.Final;
            Element = ElementType.Fire;
            Value = 100;
            Target = CreatureTarget.Both;
            AddManaCost(ElementType.Fire, 1);
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new ScorchingWingsAffect();
        }

        private class ScorchingWingsAffect: EnchantmentAffect<ScorchingWings> {
            public ScorchingWingsAffect() {
                Add(new Affects.Flight());
                Add(new Affects.ModMaxHealth(-1));
                Add(new Affects.Scorch(1));
            }
        }
    }
}
